-- CALC_ADVENTURER_SOUL_BONUS
-- 冒险者残骸的随机灵魂奖励（专用）

return function(randomBonus)
    -- 获取特殊道具出现次数信息(根据是否出现过全职猎人之证判断是否是第一次)
    local propertyOccurs = DungeonM.getPropertyOccurs();
    if not propertyOccurs[7928] then
        DungeonM.statPropertyOccurs(7928);
        return { { 1, 7928, 1 } };
    end

    local seed = DungeonM.getRandSeed("CALC_SOUL_BONUS");
    local ret = {};
    if type(randomBonus) ~= "table" or #randomBonus == 0 then
        return ret;
    end

    -- 给予随机奖励
    local classId = FormulaM.invoke("FETCH_BY_RAND", randomBonus, seed);
    table.insert(ret, {1, classId, 1} );

    return ret;
end
